package org.dromara.system.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 天眼查路径配置
 */
public class SkyEyeProperties {

    private static final Map<String, String> SKY_MAP = new HashMap<>();

    public static String getSkyId(String path) {
        return SKY_MAP.get(path);
    }

    /**
     * 请求路径
     */
    static String URL = "https://open.api.tianyancha.com";

    /**
     * 工商快照
     */
    public static String SNAPSHOT = "/services/open/ic/snapshot";

    /**
     * 企业信息
     */
    public static String COMPANY_INFO = "/services/open/ic/baseinfoV2/2.0";

    /**
     * 股东出资
     */
    public static String HOLDER_LIST = "/services/open/ic/holderList/2.0";

    /**
     * 对外投资
     */
    public static String INVEST = "/services/open/ic/inverst/2.0";

    /**
     * 变更记录
     */
    public static String CHANGE_INFO = "/services/open/ic/changeinfo/2.0";

    /**
     * 分支机构
     */
    public static String BRANCH = "/services/open/ic/branch/2.0";

    /**
     * 企业年报
     */
    public static String ANNUAL_REPORT = "/services/open/ic/annualreport/2.0";

    /**
     * 企业业务
     */
    public static String PRODUCT_INFO = "/services/open/cd/getProductInfo/2.0";

    /**
     * 投资机构
     */
    public static String INVEST_ORG = "/services/open/cd/investOrg/2.0";

    /**
     * 进出口
     */
    public static String IMPORT_EXPORT = "/services/open/m/importAndExport/2.0";

    /**
     * 招标股
     */
    public static String BIDS = "/services/open/m/bids/2.0";

    /**
     * 行政许可
     */
    public static String ADMIN_LICENSE = "/services/open/m/getAdministrativeLicense/2.0";

    /**
     * 企业信用评级
     */
    public static String CREDIT_RATE = "/services/open/m/creditRating/2.0";

    /**
     * 地块公示
     */
    public static String LAND_PUBLICITY = "/services/open/m/landPublicity/2.0";

    /**
     * 招聘
     */
    public static String EMPLOYMENTS = "/services/open/m/employments/3.0";

    /**
     * 购地信息
     */
    public static String PURCHASE_LAND = "/services/open/m/purchaseLand/2.0";

    /**
     * 客户
     */
    public static String CUSTOMERS = "/services/open/m/customer/2.0";

    /**
     * 供应商
     */
    public static String SUPPLY = "/services/open/m/supply/2.0";

    /**
     * 产品信息
     */
    public static String APP_BK_INFO = "/services/open/m/appbkInfo/2.0";

    /**
     * 债券信息
     */
    public static String BOND = "/services/open/m/bond/2.0";

    /**
     * 资质证书
     */
    public static String CERTIFICATION = "/services/open/m/certificate/2.0";

    /**
     * 税务评级
     */
    public static String TAX_CREDIT = "/services/open/m/taxCredit/2.0";

    /**
     * 软件著作
     */
    public static String COPY_REG = "/services/open/ipr/copyReg/2.0";

    /**
     * 作品著作
     */
    public static String COPY_REG_WORKS = "/services/open/ipr/copyRegWorks/2.0";

    /**
     * 企业专利信息
     */
    public static String PATENTS = "/services/open/ipr/patents/3.0";

    /**
     * 最终受益人
     */
    public static String HUMAN_HOLDING = "/services/open/ic/humanholding/2.0";

    /**
     * 法律诉讼
     */
    public static String LAW_SUIT = "/services/open/jr/lawSuit/3.0";

    /**
     * 立案信息
     */
    public static String COURT_REGISTER = "/services/open/jr/courtRegister/2.0";

    /**
     * 送达公告
     */
    public static String SEND_ANNOUNCEMENT = "/services/open/jr/sendAnnouncement/2.0";

    /**
     * 开庭公告
     */
    public static String OPEN_ANNOUNCEMENT = "/services/open/jr/ktannouncement/2.0";

    /**
     * 失信人
     */
    public static String DISHONEST = "/services/open/jr/dishonest/2.0";

    /**
     * 税收违法
     */
    public static String TAX_CONTRAVENTION = "/services/open/mr/taxContravention/2.0";

    /**
     * 知识产权出质
     */
    public static String PLEDGE_REG = "/services/v4/open/getPledgeReg";

    /**
     * 公示催告
     */
    public static String PUBLIC_NOTICE = "/services/v4/open/publicNotice";

    /**
     * 动产抵押
     */
    public static String MORTGAGE_INFO = "/services/open/mr/mortgageInfo/2.0";

    /**
     * 司法拍卖
     */
    public static String JUDICIAL_SALE = "/services/open/mr/judicialSale/3.0";

    /**
     * 简易注销
     */
    public static String BRIEF_CANCEL = "/services/open/mr/briefCancel/2.0";

    /**
     * 经营异常
     */
    public static String ABNORMAL = "/services/open/mr/abnormal/2.0";

    /**
     * 严重违法
     */
    public static String ILLEGAL_INFO = "/services/open/mr/illegalinfo/2.0";

    /**
     * 行政处罚
     */
    public static String PUNISHMENT_INFO = "/services/open/mr/punishmentInfo/3.0";

    /**
     * 企业商标信息
     */
    public static String TM = "/services/open/ipr/tm/2.0";

    /**
     * 网站备案
     */
    public static String ICP = "/services/open/ipr/icp/3.0";

    /**
     * 股权出质
     */
    public static String EQUITY_INFO = "/services/open/mr/equityInfo/2.0";

    /**
     * 行政许可，其他来源
     */
    public static String LICENSE_CREDIT = "/services/open/m/getLicenseCreditchina/2.0";


    /**
     * 失信被执行人
     */
    public static String HUMAN_DISHONEST = "/services/v4/open/human/dishonest";

    /**
     * 幕后关系发现
     */
    public static String RELA_HIDDEN = "/services/open/rela/hidden";


    /**
     * 企业信用报告
     */
    public static String COMPANY_BASE = "/services/open/report/company/base";

    /**
     * 企业脸谱
     */
    public static String COMPANY_FACE = "/services/v4/open/oneKey/c";

    static {
        SKY_MAP.put(SNAPSHOT, "1045");
        SKY_MAP.put(COMPANY_INFO, "818");
        SKY_MAP.put(HOLDER_LIST, "997");
        SKY_MAP.put(INVEST, "823");
        SKY_MAP.put(CHANGE_INFO, "822");
        SKY_MAP.put(BRANCH, "824");
        SKY_MAP.put(ANNUAL_REPORT, "825");
        SKY_MAP.put(PRODUCT_INFO, "828");
        SKY_MAP.put(INVEST_ORG, "944");
        SKY_MAP.put(IMPORT_EXPORT, "881");
        SKY_MAP.put(BIDS, "887");
        SKY_MAP.put(ADMIN_LICENSE, "1129");
        SKY_MAP.put(CREDIT_RATE, "1049");
        SKY_MAP.put(LAND_PUBLICITY, "949");
        SKY_MAP.put(EMPLOYMENTS, "1118");
        SKY_MAP.put(PURCHASE_LAND, "885");
        SKY_MAP.put(CUSTOMERS, "947");
        SKY_MAP.put(SUPPLY, "946");
        SKY_MAP.put(APP_BK_INFO, "882");
        SKY_MAP.put(BOND, "886");
        SKY_MAP.put(CERTIFICATION, "880");
        SKY_MAP.put(TAX_CREDIT, "884");
        SKY_MAP.put(COPY_REG, "836");
        SKY_MAP.put(COPY_REG_WORKS, "833");
        SKY_MAP.put(PATENTS, "1137");
        SKY_MAP.put(HUMAN_HOLDING, "945");
        SKY_MAP.put(LAW_SUIT, "1114");
        SKY_MAP.put(COURT_REGISTER, "961");
        SKY_MAP.put(SEND_ANNOUNCEMENT, "962");
        SKY_MAP.put(OPEN_ANNOUNCEMENT, "840");
        SKY_MAP.put(DISHONEST, "843");
        SKY_MAP.put(TAX_CONTRAVENTION, "957");
        SKY_MAP.put(PLEDGE_REG, "795");
        SKY_MAP.put(PUBLIC_NOTICE, "796");
        SKY_MAP.put(MORTGAGE_INFO, "844");
        SKY_MAP.put(JUDICIAL_SALE, "1120");
        SKY_MAP.put(BRIEF_CANCEL, "960");
        SKY_MAP.put(ABNORMAL, "848");
        SKY_MAP.put(ILLEGAL_INFO, "846");
        SKY_MAP.put(PUNISHMENT_INFO, "1124");
        SKY_MAP.put(TM, "838");
        SKY_MAP.put(ICP, "1038");
        SKY_MAP.put(EQUITY_INFO, "845");
        SKY_MAP.put(LICENSE_CREDIT, "889");
        SKY_MAP.put(HUMAN_DISHONEST, "1076");
        SKY_MAP.put(RELA_HIDDEN, "");
        SKY_MAP.put(COMPANY_BASE, "1034");
        SKY_MAP.put(COMPANY_FACE, "783");
    }
}
